package com.xbongbong.pro.domain.dao;

import com.xbongbong.pro.domain.entity.FineClueCompanyEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Author mingliang
 * @Description 精线索公司dao
 **/
@Mapper
@Repository
public interface FineClueCompanyDao {

    List<FineClueCompanyEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer insert(FineClueCompanyEntity entity);

    Integer update(FineClueCompanyEntity entity);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);

    FineClueCompanyEntity getByKey(@Param("id") Long id, @Param("corpid") String corpid);

    FineClueCompanyEntity getByCorpid(@Param("corpid") String corpid, @Param("type") Integer type);

    Integer autoincrementRegisterCount(FineClueCompanyEntity entity);

    /***
     * 获取所有的公司corpid
     *
     * @param
     * @throws
     * @return List<String>
     * @author hongxiao
     * @date 2022-01-04 17:18
     * @since
     * @version
     */
    List<String> getCorpidList();

    /***
     * 根据套餐类型查公司
     *
     * @param type
     * @throws
     * @return List<String>
     * @author hongxiao
     * @date 2022-01-04 17:18
     * @since
     * @version
     */
    List<String> getCorpidListWithType(@Param("type") int type);
}
